package level_one;

import java.util.Scanner;

public class One {
    public static void main(String[] args) {
        System.out.println("请输入一个整数");
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        //使用三元运算符判断这个数是奇数还是偶数
        String s = a % 2 == 0 ? "偶数" : "奇数";
        System.out.println("您输入的数字为" + s);
        if (a % 2 == 0) {
            System.out.println("您输入的数字为偶数");
        }
        else {
            System.out.println("您输入的数字为奇数");
        }
    }
}
